package com.xinqi.modules.sys.stats.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.sys.stats.domain.SchoolTeachingDayStEntity;
import com.xinqi.modules.sys.stats.dto.req.SchoolTeachingDayStCreateDTO;
import com.xinqi.modules.sys.stats.dto.req.SchoolTeachingDayStUpdateDTO;
import com.xinqi.modules.sys.stats.dto.rsp.SchoolTeachingDayStResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 学校教学数据统计转换
 *
 * @author: wenjie
 * @date: 2023/08/24
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class SchoolTeachingDayStConvert {
    public abstract SchoolTeachingDayStEntity create(SchoolTeachingDayStCreateDTO s);

    public abstract SchoolTeachingDayStEntity update(SchoolTeachingDayStUpdateDTO s, @MappingTarget SchoolTeachingDayStEntity t);

    public abstract SchoolTeachingDayStEntity update(SchoolTeachingDayStUpdateDTO s);

    public abstract SchoolTeachingDayStResultDTO convert(SchoolTeachingDayStEntity s);
}
